home *** CD-ROM | disk | FTP | other *** search
- .key SFile,PName
- .bra {
- .ket }
-
- ;/*
- ;** $VER: LPR 1.000 (18.10.00) © <gcalzo@geocities.com>
- ;**
- ;**
- ;** FUNCTION:
- ;** Copies spool files received by Samba to PAR:
- ;**
- ;** Directory Samba:Spools/{PName} must exists!
- ;**
- ;** - SFile spoolfile name
- ;** - PName printer queue name
- ;**
- ;** In smb.conf use the following cmd:
- ;** print command = /Samba/LPR %s %p
- ;**
- ;** $HISTORY:
- ;**
- ;** 18 Oct 2000 : 001.000 : First public release to Aminet
- ;** 14 Oct 2000 : 000.003 : corrected a typo into the "print command" help header! :-(
- ;** 05 Aug 2000 : 000.002 : added a timestamp for end of process
- ;** 20 Jun 2000 : 000.001 : Copies spool files received by Samba to PAR:
- ;**
- ;*/
-
- FailAt 21
-
- Echo >>T:LPR.log ""
- Date >>T:LPR.log
- Echo >>T:LPR.log "Printing Spoolfile={SFile} Printer={PName}"
-
- Copy >>T:LPR.log Samba:Spools/{PName}/{SFile} PAR:
- Delete >>T:LPR.log Samba:Spools/{PName}/{SFile}
-
- Date >>T:LPR.log
-
- FailAt 10
-
-